﻿using Encryption.models;
using System.Text;

namespace Encryption
{
    internal class Program
    {
        /// <summary>
        /// 维吉尼亚加密法测试
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和密钥
            Console.WriteLine("please input your plaintext:");
            string plain = Console.ReadLine();
            Console.WriteLine("please input your key:");
            string key = Console.ReadLine();
            //加密
            Encodr myEncoer = new Encodr();
            myEncoer.Plaintext = plain;
            myEncoer.Key = key;
            myEncoer.Encoder();
            //输出密文
            Console.WriteLine($"your cypheris;{myEncoer.Cypher}");
        }
    }
}